package com.lxmes.jiesuan.mapper;

import java.util.List;
import java.util.Map;

import com.lxmes.jiesuan.domain.JiesuanZhikuan;

/**
 * 支款记账Mapper接口
 * 
 * @author zhangzhiyu
 * @date 2022-09-26
 */
public interface JiesuanZhikuanMapper 
{
    /**
     * 查询支款记账
     * 
     * @param id 支款记账主键
     * @return 支款记账
     */
    public JiesuanZhikuan selectJiesuanZhikuanById(Long id);

    /**
     * 查询支款记账列表
     * 
     * @param jiesuanZhikuan 支款记账
     * @return 支款记账集合
     */
    public List<JiesuanZhikuan> selectJiesuanZhikuanList(JiesuanZhikuan jiesuanZhikuan);

    /**
     * 新增支款记账
     * 
     * @param jiesuanZhikuan 支款记账
     * @return 结果
     */
    public int insertJiesuanZhikuan(JiesuanZhikuan jiesuanZhikuan);

    /**
     * 修改支款记账
     * 
     * @param jiesuanZhikuan 支款记账
     * @return 结果
     */
    public int updateJiesuanZhikuan(JiesuanZhikuan jiesuanZhikuan);

    /**
     * 删除支款记账
     * 
     * @param id 支款记账主键
     * @return 结果
     */
    public int deleteJiesuanZhikuanById(Long id);

    /**
     * 批量删除支款记账
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJiesuanZhikuanByIds(Long[] ids);

    //统计支款
    public Map<String,String> selectTjZhikuanByYwId(String ywId);

}
